﻿
#region Imports...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using InvoiceChecking.Web.UI;
#endregion

public partial class PaymentAccountEdit : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{		
		FormUtil.RedirectAfterInsertUpdate(FormView1, "PaymentAccountEdit.aspx?{0}", PaymentAccountDataSource);
		FormUtil.RedirectAfterAddNew(FormView1, "PaymentAccountEdit.aspx");
		FormUtil.RedirectAfterCancel(FormView1, "PaymentAccount.aspx");
		FormUtil.SetDefaultMode(FormView1, "PaymentAccount");
	}
    protected void FormView1_Load(object sender, EventArgs e)
    {
        if (FormView1.CurrentMode == FormViewMode.Edit)
        {
            var dataPaymentAccount = (TextBox)FormView1.FindControl("dataPaymentAccount");
            dataPaymentAccount.Enabled = false;
            var dataCurrentBalance = (TextBox)FormView1.FindControl("dataCurrentBalance");
            dataCurrentBalance.Enabled = false;
        }
    }
}


